/*
 * Copyright (c) 2006-2025, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-02-27     RT-Thread    first version
 */

#include <rtthread.h>
#include <AD9910/AD9910_Thread.hpp>
#include <TCP_SERVER/TCP_SERVER.hpp>

#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>

int main(void)
{
    AD9910_Thread &ad9910_thread = AD9910_Thread::getInstance();
    ad9910_thread.start();

    TCP_SERVER* tcp_thread = TCP_SERVER::getInstance();
    tcp_thread->start();


    while (1)
    {
        // LOG_D("Hello RT-Thread!");
        rt_thread_mdelay(1000);
    }

    return RT_EOK;
}
